From 4be7bf351c3daf23001b62be7cb65ae9fb929dd3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 26 Sep 2022 23:56:19 -0700 Subject: tip refactoring --- src/routes/invoice/[id]/+page.svelte | 221 +++--------------------------- src/routes/invoice/[id]/paid/+page.svelte | 4 +- 2 files changed, 19 insertions(+), 206 deletions(-) (limited to 'src/routes/invoice/[id]') diff --git a/src/routes/invoice/[id]/+page.svelte b/src/routes/invoice/[id]/+page.svelte index 60257ab7..0fa34430 100644 --- a/src/routes/invoice/[id]/+page.svelte +++ b/src/routes/invoice/[id]/+page.svelte @@ -1,10 +1,9 @@
@@ -160,92 +77,19 @@ class="block lg:flex justify-center items-center space-y-10 lg:space-y-0 space-x-0 lg:space-x-24" > {#if invoice.prompt} -
-
- - -
-

{$t('invoice.addTipq')}

- {#if !showCustomAmount} -
- {f(tipAmount, currency)}{`(${s(tip)} SAT)`} - {Math.round(tipPercent)}% -
- - (showMobileTip = false)} - /> - {/if} -
- {#if !showCustomAmount} - {#each tipAmounts as amount} - - {/each} - {/if} - {#if showCustomAmount} -
- $ - handleCustomTipAmount(e)} - class="pl-10" - placeholder="Other" - /> - - -
- {:else} -
- -
- {/if} -
-
- -